package com.devilvan.betrice.bilibili.controller;

import com.devilvan.betrice.bilibili.po.BilibiliMemberPo;
import com.devilvan.betrice.bilibili.service.BilibiliMemberService;
import com.devilvan.betrice.common.BetriceResultVo;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Evad.Wu
 * @Description Bilibili-用户信息表 控制器
 * @date 2022-12-22
 */
@RestController
@RequestMapping(value = "bilibiliMemberController")
@Tag(name = "Bilibili-用户信息表 控制器")
public class BilibiliMemberController {
    @Resource(name = "bilibiliMemberServiceImpl")
    private BilibiliMemberService bilibiliMemberService;

    /**
     * 总请求控制器
     *
     * @return 形式返回
     */
    @Operation(summary = "总请求控制器")
    @GetMapping(value = "doBilibiliMember")
    public BetriceResultVo<BilibiliMemberPo> doBilibiliMember() {
        BetriceResultVo<BilibiliMemberPo> betriceResultVo = new BetriceResultVo<>();
        return betriceResultVo;
    }

    /**
     * 采集报文控制器
     *
     * @return 形式返回
     */
    @Operation(summary = "采集报文控制器")
    @GetMapping(value = "doBilibiliMemberCrawler")
    public BetriceResultVo<BilibiliMemberPo> doBilibiliMemberCrawler() {
        BetriceResultVo<BilibiliMemberPo> betriceResultVo = new BetriceResultVo<>();
        return betriceResultVo;
    }

    /**
     * 解析报文控制器
     *
     * @param request 报文
     * @return 形式返回
     */
    @Operation(summary = "解析报文控制器")
    @GetMapping(value = "doBilibiliMemberRequest")
    public BetriceResultVo<BilibiliMemberPo> doBilibiliMemberRequest(@RequestBody String request) {
        BetriceResultVo<BilibiliMemberPo> betriceResultVo = new BetriceResultVo<>();
        return betriceResultVo;
    }
}
